const baseSize = 32
function setRem () {
  const scale = document.documentElement.clientWidth / 750
  document.documentElement.style.fontSize = (baseSize * Math.min(scale, 2)) + 'px'
}
setRem()
window.onresize = function () {
  setRem()
}

//禁止手机返回键    下面这段代码直接复制在index.html中，可以生效
//	$(document).ready(function() {
/*if (window.history && window.history.pushState) {
  window.addEventListener('popstate',function () {
    window.history.pushState('forward', null, '#');
    window.history.forward(1);
  })
}
window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
window.history.forward(1);*/
//	});
